﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace EAppointment.Models
{
    public class Succs
    {
        public static JsonpResult ReturnSuccess(SuccsTypes type)
        {
            UniResult result = new UniResult();
            result.Result = true;
            result.Detail = type.ToString();
            JsonpResult jsonpResult = new JsonpResult(result);
            return jsonpResult;
        }
    }

    public enum SuccsTypes
    {
        REGISTER_SUCCESSED,
        APPOINT_SUCCESSED,
        VERIFY_SUCCESSED
    }
}